package com.satan.fmmall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.satan.fmmall.entity.Category;
import com.satan.fmmall.vo.CategoryVo;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {
    //连接查询
    public List<CategoryVo> selectAllCategories();
    //子查询
    public List<CategoryVo> selectAllCategories2(Integer parentId);

    //查询一级类别
    public List<CategoryVo> selectFirstLevelCategories();


}
